package edu.sctu.practice.class01.wujiayi.text01;

import java.util.Scanner;

/**
 * Created by acer1 on 2015/10/15.
 */
public class B {
    public String guess(){
        A a = new A();
        Scanner input = new Scanner(System.in);
        int num = input.nextInt();
        String fruit="";
        if (a.v==num){

            fruit = "猜测成功";
        }else if (a.v<num){

            fruit = "猜测失败，数字过大";

        }else {
            fruit = "猜测失败，数字过小";
        }
        return fruit;

    }
}
